home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000120_jfg@dxcern.cern.ch _Mon Jun 8 17:34:55 1992.msg < prev    next >
Internet Message Format  |  1994-01-24  |  1KB

  1. Return-Path: <jfg@dxcern.cern.ch>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA11440; Mon, 8 Jun 92 17:34:55 MET DST
  4. Received: by dxmint.cern.ch (dxcern) (5.57/3.14)
  5.     id AA01254; Mon, 8 Jun 92 17:32:28 +0200
  6. Received: by dxcern.cern.ch (5.57/Ultrix3.0-C)
  7.     id AA21936; Mon, 8 Jun 92 17:32:23 +0200
  8. Date: Mon, 8 Jun 92 17:32:23 +0200
  9. From: jfg@dxcern.cern.ch (Jean Francois Groff)
  10. Message-Id: <9206081532.AA21936@dxcern.cern.ch>
  11. To: Dan Connolly <connolly@pixel.convex.com>
  12. Cc: www-talk@nxoc01.cern.ch
  13. Subject: Re: overkill on portability macros
  14. References: <9206070615.AA15478@pixel.convex.com>
  15.  
  16. > But ANSI C and PCC share syntax for _defining_ functions.
  17. > The preprocessor dancing is necessary for _declaring_ functions
  18. > like so:
  19. >
  20. > int foo __ARGS__((int x, int y, int z));
  21. >
  22. > but in the .c files, you can just do the usual
  23. >
  24. > int foo(x,y,z)
  25. > int x;
  26. > int y;
  27. > int z;
  28.  
  29.   True, but in the latter case you don't get any type checking of the
  30. parameters in functions that happen NOT to be declared before their
  31. definition. I agree that the syntax with extra commas is ugly, though,
  32. but there was no better way.
  33.  
  34.     JF